package com.test.demo;

import com.test.demo.listener.CloseListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication sa = new SpringApplication(DemoApplication.class);
        sa.addListeners(new CloseListener());
        ConfigurableApplicationContext run = sa.run(args);
    }

}
